package com.vt.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 组织机构
 *
 * @author liudong
 * @date 2018年8月30日
 */
@Data
@Accessors(chain = true)
public class SysOrganization extends Model<SysOrganization> {

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty("组织名称")
    private String name;

    @ApiModelProperty("上级组织id")
    private String parentId;

    @ApiModelProperty("是否可编辑(0-否，1-是)")
    private Integer editable;

    @ApiModelProperty("组织属性")
    private String type;

    @ApiModelProperty("排序号")
    private Integer sortNum;

    private String creater;

    private String updater;

    private Date createTime;

    private Date updateTime;

    private Integer status;
}
